const app = getApp();
Page({
  data: {
    pageName: '复习报告',
    navH: app.globalData.navHeight,
    windowHeight: 0,
    imageUrl: "https://yxpmaterial.oss-cn-beijing.aliyuncs.com/",
    minutes: parseInt(app.globalData.taskTwoMinuts / 60)
  },
  onLoad: function (options) {
    wx.getSystemInfo({
      success: res => {
        this.data.windowHeight = res.windowHeight - this.data.navH,
          this.data.windowWidth = res.windowWidth
      }, fail(err) {
        console.log(err);
      }
    })
    this.setData({
      windowHeight: this.data.windowHeight
    })
    console.log(this.data.windowHeight)
  },
  onReady: function () {

  },
  onShow: function () {

  },


  onHide: function () {

  },
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },toIndex: function () {
    wx.reLaunch({
      url: '/pages/index/index',
    })
  },
})